package org.example.lotterysystem.controller.param;

import lombok.Data;

import java.io.Serializable;
@Data
public class PageParam implements Serializable {
    //当前页
    private Integer currentPage = 1;
    //当前页的数量
    private Integer pageSize = 10;
    //偏移量
    public Integer offset(){
        return (currentPage-1)*pageSize;
    }
}
